var stu={
    name:'小明',
    age:18,
    sex:'男'
}
for(var k in stu){
    console.log(k+'---'+stu[k]);
}